﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PickGold
{
	/// <summary>
	/// 时间间隔
	/// </summary>
	[Flags]
	public enum EPeriod : long
	{
		/// <summary>
		/// 当前时间往前一年
		/// </summary>
		OneYear = BitUtil.B64_05,

		/// <summary>
		/// 当前时间往前一季度
		/// </summary>
		OneQuarter = BitUtil.B64_04,

		/// <summary>
		/// 当前时间往前一月
		/// </summary>
		OneMonth = BitUtil.B64_03,

		/// <summary>
		/// 当前时间往前一周
		/// </summary>
		OneWeek = BitUtil.B64_02,

		/// <summary>
		/// 当前时间往前一天
		/// </summary>
		OneDay = BitUtil.B64_01,


		/// <summary>
		/// 去年
		/// </summary>
		PreYear = BitUtil.B64_15,

		/// <summary>
		/// 上一季度
		/// </summary>
		PreQuarter = BitUtil.B64_14,

		/// <summary>
		/// 上一个月
		/// </summary>
		PreMonth = BitUtil.B64_13,

		/// <summary>
		/// 上一星期
		/// </summary>
		PreWeek = BitUtil.B64_12,

		/// <summary>
		/// 昨天
		/// </summary>
		PreDay = BitUtil.B64_11,


		/// <summary>
		/// 今年
		/// </summary>
		ThisYear = BitUtil.B64_25,

		/// <summary>
		/// 这一季度
		/// </summary>
		ThisQuarter = BitUtil.B64_24,

		/// <summary>
		/// 这一月
		/// </summary>
		ThisMonth = BitUtil.B64_23,

		/// <summary>
		/// 这一周
		/// </summary>
		ThisWeek = BitUtil.B64_22,

		/// <summary>
		/// 今天
		/// </summary>
		ThisDay = BitUtil.B64_21,


		/// <summary>
		/// 明年
		/// </summary>
		NextYear = BitUtil.B64_35,

		/// <summary>
		/// 下一季度
		/// </summary>
		NextQuarter = BitUtil.B64_34,

		/// <summary>
		/// 下一个月
		/// </summary>
		NextMonth = BitUtil.B64_33,

		/// <summary>
		/// 下一周
		/// </summary>
		NextWeek = BitUtil.B64_32,

		/// <summary>
		/// 明天
		/// </summary>
		NextDay = BitUtil.B64_31,

		//
		//PreJune = Common.B64_38,
		//PreJuly = Common.B64_39,
		//PreAugust = Common.B64_40,
		//PreSeptembere = Common.B64_41,
		//PreOctober = Common.B64_42,
		//PreNovember = Common.B64_43,
		//PreDecember = Common.B64_44,
		//NextJanuary = Common.B64_45,
		//NextFebruary = Common.B64_46,
		//NextMarch = Common.B64_47,
		//NextApril = Common.B64_48,
		//NextMay = Common.B64_49,


		/// <summary>
		/// 所有月份
		/// </summary>
		AllMonth = BitUtil.B64_50,


		/// <summary>
		/// 一月
		/// </summary>
		January = BitUtil.B64_51,

		/// <summary>
		/// 二月
		/// </summary>
		February = BitUtil.B64_52,

		/// <summary>
		/// 三月
		/// </summary>
		March = BitUtil.B64_53,

		/// <summary>
		/// 四月
		/// </summary>
		April = BitUtil.B64_54,

		/// <summary>
		/// 五月
		/// </summary>
		May = BitUtil.B64_55,

		/// <summary>
		/// 六月
		/// </summary>
		June = BitUtil.B64_56,

		/// <summary>
		/// 七月
		/// </summary>
		July = BitUtil.B64_57,

		/// <summary>
		/// 八月
		/// </summary>
		August = BitUtil.B64_58,

		/// <summary>
		/// 九月
		/// </summary>
		September = BitUtil.B64_59,

		/// <summary>
		/// 十月
		/// </summary>
		October = BitUtil.B64_60,

		/// <summary>
		/// 十一月
		/// </summary>
		November = BitUtil.B64_61,

		/// <summary>
		/// 十二月
		/// </summary>
		December = BitUtil.B64_62,


		/// <summary>
		/// 零间隔
		/// </summary>
		Zero = BitUtil.B64_00
	}
}
